package com.betterwood.dragon.dao;

import java.util.List;

import com.betterwood.dragon.dao.enhances.SysUserMongoRepository;
import com.betterwood.dragon.entity.SysUser;
import com.betterwood.dragon.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserDao extends MongoRepository<SysUser, String>, SysUserMongoRepository {

    SysUser getByUserNameAndPassword(String account, String password);

    List<SysUser> findByUserName(String userName);

    SysUser getByOpenId(String openId);

}